package co.msk8.client.command.action;

import co.msk8.client.command.Action;
import co.msk8.shared.Operation;

public class ActionFactory {
	
	public Action<?> createAction(Operation operation, int a, int b) {
		
		Action<?> action = null;
		
		switch (operation) {
		case ADDITION:
			action = new SumAction(a, b);
			break;
			
		case SUBSTRACTION:
			action = new SubAction(a, b);
			break;
			
		case MULTIPLICATION:
			break;
			
		case DIVISION:
			break;

		default:
			break;
		}
		
		return action;
	}

}
